import useTextPinia from '@/stores/models/useTextPinia'
// import use from '@/components/getFenlLeiString'
import { useTextList } from '@/api/textApi'

const textPinia = useTextPinia()

// 专门用来获取最新的文章分类的函数
const updateTextList = async () => {
  textPinia.textList = await useTextList()
}

export default updateTextList